<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
	</body>
	<script type="text/javascript">
		function Person(){
			this.name = 'Person';
		}
		Person.prototype.sayName = function(){
			console.log('say_name');
		}
		
		function Father(age){
			this.age = 10;
		}
		Father.prototype.sayAge = function(age){
			console.log(age);
		}
		
		//通过call bind等方法继承Person,Father的属性
		function Me(){
			Person.call(this);
			Father.call(this);
		}
		// 通过create继承Person,Father原型上的方法
		Me.prototype = Object.create(Person.prototype)
		// 通过assign方法将Father的原型对象copy到Me的原型对象上。
		Object.assign(Me.prototype,Father.prototype)
		Me.prototype.constructor = Me;
		var me = new Me()
	</script>
</html>
